//
//  HomeCenterItemCell.m
//  Ev_Master
//
//  Created by Evan on 2019/7/2.
//  Copyright © 2019 Evan. All rights reserved.
//

#import "HomeCenterItemCell.h"

@implementation HomeCenterItemCell

+ (instancetype)cellWithTableView:(UITableView *)tableView  IndexPath:(NSIndexPath *)indexPath{
    NSString *Service = [NSString stringWithFormat:@"HomeCenterItemCell_%ld_%ld",indexPath.section,indexPath.row];
    HomeCenterItemCell *cell = [tableView dequeueReusableCellWithIdentifier:Service];
    if (cell == nil) {
        [ tableView registerNib:[UINib nibWithNibName:@"HomeCenterItemCell" bundle:nil] forCellReuseIdentifier:Service];
        cell = [tableView dequeueReusableCellWithIdentifier:Service];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return cell;
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)btnIconClick:(UIButton *)sender {
    NSInteger btnIndex = sender.tag;
    self.blockBtnClick(btnIndex);
}

@end
